'use strict';

const BaseController = require('../base');

class TravelShareOrderController extends BaseController {
  static get serviceName() {
    return 'business.travelShareOrder';
  }

  async cancel() {
    const { ctx } = this;
    const { id } = ctx.params;
    const result = await ctx.service.business.travelShareOrder.cancel(id);
    ctx.success(result);
  }
}

module.exports = TravelShareOrderController;
